package com.define.ssh.model;

import java.util.Date;

/**
 * 登陆用户session信息.
 * 
 */
public final class OnlineSession {

	private String ip;// ip
	private UserInfo userInfo;// 登录系统时间.
	private Date loginTime;// 登录系统时间.

	public OnlineSession(UserInfo _userInfo, String _ip) {
		this.ip = _ip;
		this.userInfo = _userInfo;
		this.loginTime = new Date();
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public UserInfo getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
}